#pragma once

#include <iostream>
#include <vector>
#include <map>

#include <iguana/json.hpp>
#include "json.hpp"



namespace bz
{
	

	class poll
	{
	public:
		int poll_id;
		int meet_id;
		std::string name;
		int is_poll_mcu;
		

		NLOHMANN_DEFINE_TYPE_INTRUSIVE(poll, poll_id, meet_id,name, is_poll_mcu)
	private:


	};

	

	
	class poll_device {
	public:
		int poll_id;
		int meet_id;
		int device_id;
		int poll_time;
		int is_tmp;
		int device_type;
		std::string ip;
		std::string obj_id;
		std::string parent_obj;
		std::string name;
		json child= json::array();
		int is_use;
		NLOHMANN_DEFINE_TYPE_INTRUSIVE(poll_device, poll_id, device_id, poll_time, is_tmp, obj_id, parent_obj, is_use, device_type,ip, name,child)
	};


	REFLECTION(poll, poll_id, meet_id, name, is_poll_mcu)
	REFLECTION(poll_device, poll_id, meet_id,device_id, poll_time, is_tmp, obj_id, parent_obj, is_use)

}